//DWORD WINAPI WatermarkThreadProc(LPVOID);
//DWORD WINAPI DetectThreadProc(LPVOID);

#include <string>

bool YUVWatermark(std::string strFileName);
bool YUVWMDetect(std::string strFileName);

void UMeanWatermark(unsigned char *u, int width, int height, short w, int index);
void UMeanWMDetect(unsigned char *u, int width, int height, int index, double *dbVal, double *dbSum);

void YSyncWatermark(unsigned char *y, int width, int height, short goldc[][63], unsigned int key);
double YSyncWmDetect(unsigned char *y, int width, int height, short goldc[][63], unsigned int key);
